﻿using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
using System.Xml.Serialization;

namespace SysTrayRadio
{
    public partial class Setup : Form
    {
        private readonly List<Station> _stations = new List<Station>();

        public Setup()
        {
            InitializeComponent();
        }

        public void SaveStationList()
        {
            using (var fs = new FileStream(@"PlayList.xml", FileMode.OpenOrCreate, FileAccess.Write))
            {
                var x = new XmlSerializer(_stations.GetType());
                x.Serialize(fs, _stations);
            }
        }

        private void testToolStripMenuItem_Click(object sender, System.EventArgs e)
        {

        }

        private void testToolStripMenuItem_DoubleClick(object sender, System.EventArgs e)
        {

        }

        private void testToolStripMenuItem_CheckedChanged(object sender, System.EventArgs e)
        {

        }
    }
}
